<div id="all">
	<div id="left">
		<div class="container">
			<h1>Sent Notifications</h1>
			<?php obtenerNotificacionesAbiertasEnviadas($_SESSION["user_id"]);?>
		</div>
	</div>
	<div id="right">
		<div class="container">
			<h1>Received Notifications</h1>
			<?php 
				$action = REPLACE_Injection($_GET["action"]);
				if($action == "accept-notification"){
					$id = REPLACE_Injection($_GET["id"]);
					if(acceptMatchNotification($id)){
						echo '<div id="ok">The Notification has been accepted</div>';
					}else{
						echo '<div id="error">Error: The Notification has not been accepted</div>';
					}
				}elseif($action == "reject-notification"){
					$id = REPLACE_Injection($_GET["id"]);
					if(rejectMatchNotification($id)){
						echo '<div id="ok">The Notification has been rejected</div>';
					}else{
						echo '<div id="error">Error: The Notification has not been rejected</div>';
					}
				}			
			?>
			<?php obtenerNotificacionesAbiertasRecibidas($_SESSION["user_id"]);?>
		</div>
	</div>
</div>